package BehavioralPatterns.Memento;

import java.util.ArrayList;
import java.util.List;

public class CareTaker {

  List<Memento> mementoList =  new ArrayList<Memento>();

  public void add(Memento state){
    mementoList.add(state);
  }

  public Memento getState(int index){
    return mementoList.get(index);
  }
}
